package com.bootdo.api.domain;

public class OfflineBody {
	private String TxnType;			//交易类型
	private String TransType;		//交易标识
	private String TransID;			//交易序号
	private String TermID;			//终端编号	业务方
	private String TermSeq;			//终端流水号	业务方
	private String PosID;			//PSAM设备号(自己设定)
	private String SamID;			//PSAM卡号	业务方
	private String SamSeq;			//PSAM流水号	业务方
	private String PosOprID;		//操作员编号
	private String IssuerID;		//发卡机构标识	钱包
	private String CardID;			//卡内号			钱包
	private String CardCsn;			//卡CSN(可忽略)
	private String CardDebitCnt;	//卡计数器		钱包 
	private String CardModel;		//卡交易模式 	01：电子钱包(写死) 
	private String CardEndDate;		//卡结束日期		钱包
	private String CardType;		//主卡类型		钱包  	01：普通卡 02：学生卡 03：老人卡 04：测试卡 05：军人卡
	private String BusinessIndex;	//行业索引 详情见文档
	private String ExtendType;		//拓展应用类型 	钱包		00：无拓展应用
	private String Balance;			//消费前卡余额(分)钱包
	private String TxnAmt;			//交易金额（分）	10进制
	private String Chargetype;		//收费类型		钱包
	private String OrigAmt;			//应收金额	 10进制
	private String TxnDate;			//交易发生日期
	private String TxnTime;			//交易发生时间
	private String TAC;				//交易认证码		钱包
	private String CardRand;		//不可预知数		钱包
	private String ECCIssAppData;	//发卡行应用数据
	private String TxnAmtCode;		//交易货币代码
	private String OtherAmt;		//其它金额 若无填写全0
	private String CoutryCode;		//终端国家代码
	private String TermChk;			//终端验证结果
	private String ECCTranTp;		//电子现金交易类型
	private String ECCAIP;			//应用交互特征 
	private String CardVerNo;		//卡内版本号
	private String KeyVer;			//密钥版本 默认：01
	private String ComputTag;		//算法标识 默认：01：3DES 
	private String KeyIndex;		//密钥索引号 默认使用01
	private String PanSeq;			//Pan序号 电子现金必送5F34
	private String Rsvd;			//保留域 全F
	private String TestFlag;		//测试标记 0正式数据、1测试数据
	private OfflineTradSpec TradSpec;		//特有数据
	private String RtnSign2;		//换行
	private String NullLine;		//空行

	public String getTxnType() {
		return TxnType;
	}

	public void setTxnType(String txnType) {
		TxnType = txnType;
	}

	public String getTransType() {
		return TransType;
	}

	public void setTransType(String transType) {
		TransType = transType;
	}

	public String getTransID() {
		return TransID;
	}

	public void setTransID(String transID) {
		TransID = transID;
	}

	public String getTermID() {
		return TermID;
	}

	public void setTermID(String termID) {
		TermID = termID;
	}

	public String getTermSeq() {
		return TermSeq;
	}

	public void setTermSeq(String termSeq) {
		TermSeq = termSeq;
	}

	public String getPosID() {
		return PosID;
	}

	public void setPosID(String posID) {
		PosID = posID;
	}

	public String getSamID() {
		return SamID;
	}

	public void setSamID(String samID) {
		SamID = samID;
	}

	public String getSamSeq() {
		return SamSeq;
	}

	public void setSamSeq(String samSeq) {
		SamSeq = samSeq;
	}

	public String getPosOprID() {
		return PosOprID;
	}

	public void setPosOprID(String posOprID) {
		PosOprID = posOprID;
	}

	public String getIssuerID() {
		return IssuerID;
	}

	public void setIssuerID(String issuerID) {
		IssuerID = issuerID;
	}

	public String getCardID() {
		return CardID;
	}

	public void setCardID(String cardID) {
		CardID = cardID;
	}

	public String getCardCsn() {
		return CardCsn;
	}

	public void setCardCsn(String cardCsn) {
		CardCsn = cardCsn;
	}

	public String getCardDebitCnt() {
		return CardDebitCnt;
	}

	public void setCardDebitCnt(String cardDebitCnt) {
		CardDebitCnt = cardDebitCnt;
	}

	public String getCardModel() {
		return CardModel;
	}

	public void setCardModel(String cardModel) {
		CardModel = cardModel;
	}

	public String getCardEndDate() {
		return CardEndDate;
	}

	public void setCardEndDate(String cardEndDate) {
		CardEndDate = cardEndDate;
	}

	public String getCardType() {
		return CardType;
	}

	public void setCardType(String cardType) {
		CardType = cardType;
	}

	public String getBusinessIndex() {
		return BusinessIndex;
	}

	public void setBusinessIndex(String businessIndex) {
		BusinessIndex = businessIndex;
	}

	public String getExtendType() {
		return ExtendType;
	}

	public void setExtendType(String extendType) {
		ExtendType = extendType;
	}

	public String getBalance() {
		return Balance;
	}

	public void setBalance(String balance) {
		Balance = balance;
	}

	public String getTxnAmt() {
		return TxnAmt;
	}

	public void setTxnAmt(String txnAmt) {
		TxnAmt = txnAmt;
	}

	public String getChargetype() {
		return Chargetype;
	}

	public void setChargetype(String chargetype) {
		Chargetype = chargetype;
	}

	public String getOrigAmt() {
		return OrigAmt;
	}

	public void setOrigAmt(String origAmt) {
		OrigAmt = origAmt;
	}

	public String getTxnDate() {
		return TxnDate;
	}

	public void setTxnDate(String txnDate) {
		TxnDate = txnDate;
	}

	public String getTxnTime() {
		return TxnTime;
	}

	public void setTxnTime(String txnTime) {
		TxnTime = txnTime;
	}

	public String getTAC() {
		return TAC;
	}

	public void setTAC(String tAC) {
		TAC = tAC;
	}

	public String getCardRand() {
		return CardRand;
	}

	public void setCardRand(String cardRand) {
		CardRand = cardRand;
	}

	public String getECCIssAppData() {
		return ECCIssAppData;
	}

	public void setECCIssAppData(String eCCIssAppData) {
		ECCIssAppData = eCCIssAppData;
	}

	public String getTxnAmtCode() {
		return TxnAmtCode;
	}

	public void setTxnAmtCode(String txnAmtCode) {
		TxnAmtCode = txnAmtCode;
	}

	public String getOtherAmt() {
		return OtherAmt;
	}

	public void setOtherAmt(String otherAmt) {
		OtherAmt = otherAmt;
	}

	public String getCoutryCode() {
		return CoutryCode;
	}

	public void setCoutryCode(String coutryCode) {
		CoutryCode = coutryCode;
	}

	public String getTermChk() {
		return TermChk;
	}

	public void setTermChk(String termChk) {
		TermChk = termChk;
	}

	public String getECCTranTp() {
		return ECCTranTp;
	}

	public void setECCTranTp(String eCCTranTp) {
		ECCTranTp = eCCTranTp;
	}

	public String getECCAIP() {
		return ECCAIP;
	}

	public void setECCAIP(String eCCAIP) {
		ECCAIP = eCCAIP;
	}

	public String getCardVerNo() {
		return CardVerNo;
	}

	public void setCardVerNo(String cardVerNo) {
		CardVerNo = cardVerNo;
	}

	public String getKeyVer() {
		return KeyVer;
	}

	public void setKeyVer(String keyVer) {
		KeyVer = keyVer;
	}

	public String getComputTag() {
		return ComputTag;
	}

	public void setComputTag(String computTag) {
		ComputTag = computTag;
	}

	public String getKeyIndex() {
		return KeyIndex;
	}

	public void setKeyIndex(String keyIndex) {
		KeyIndex = keyIndex;
	}

	public String getPanSeq() {
		return PanSeq;
	}

	public void setPanSeq(String panSeq) {
		PanSeq = panSeq;
	}

	public String getRsvd() {
		return Rsvd;
	}

	public void setRsvd(String rsvd) {
		Rsvd = rsvd;
	}

	public String getTestFlag() {
		return TestFlag;
	}

	public void setTestFlag(String testFlag) {
		TestFlag = testFlag;
	}

		public OfflineTradSpec getTradSpec() {
		return TradSpec;
	}

	public void setTradSpec(OfflineTradSpec tradSpec) {
		TradSpec = tradSpec;
	}

	public String getRtnSign2() {
		return RtnSign2;
	}

	public void setRtnSign2(String rtnSign2) {
		RtnSign2 = rtnSign2;
	}

	public String getNullLine() {
		return NullLine;
	}

	public void setNullLine(String nullLine) {
		NullLine = nullLine;
	}

	public OfflineBody(){}
	
	public OfflineBody(String TxnType, String TransType, String TransID, String TermID, String TermSeq, String PosID, String SamID, String SamSeq, String PosOprID, 
			 String IssuerID, String CardID, String CardCsn, String CardDebitCnt, String CardModel, String CardEndDate, String CardType, String BusinessIndex, String ExtendType, String Balance, String TxnAmt, String Chargetype, String OrigAmt, String TxnDate, 
			String TxnTime, String TAC, String CardRand, String ECCIssAppData, String TxnAmtCode, String OtherAmt, String CoutryCode, String TermChk,
			String ECCTranTp, String ECCAIP, String CardVerNo, String KeyVer, String ComputTag, String KeyIndex, String PanSeq, String Rsvd, 
			String TestFlag,OfflineTradSpec TradSpec, String RtnSign2, String NullLine){
		
		this.TxnType = TxnType;
		this.TransType = TransType;
		this.TransID = TransID;
		this.TermID = TermID;
		this.TermSeq = TermSeq;
		this.PosID = PosID;
		this.SamID = SamID;
		this.SamSeq = SamSeq;
		this.PosOprID = PosOprID;
		this.IssuerID = IssuerID;
		this.CardID = CardID;
		this.CardCsn = CardCsn;
		this.CardDebitCnt = CardDebitCnt;
		this.CardModel = CardModel;
		this.CardEndDate = CardEndDate;
		this.CardType = CardType;
		this.BusinessIndex = BusinessIndex;
		this.ExtendType = ExtendType;
		this.Balance = Balance;
		this.TxnAmt = TxnAmt;
		this.Chargetype = Chargetype;
		this.OrigAmt = OrigAmt;
		this.TxnDate = TxnDate;
		this.TxnTime = TxnTime;
		this.TAC = TAC;
		this.CardRand = CardRand;
		this.ECCIssAppData = ECCIssAppData;
		this.TxnAmtCode = TxnAmtCode;
		this.OtherAmt = OtherAmt;
		this.CoutryCode = CoutryCode;
		this.TermChk = TermChk;
		this.ECCTranTp = ECCTranTp;
		this.ECCAIP = ECCAIP;
		this.CardVerNo = CardVerNo;
		this.KeyVer = KeyVer;
		this.ComputTag = ComputTag;
		this.KeyIndex = KeyIndex;
		this.PanSeq = PanSeq;
		this.Rsvd = Rsvd;
		this.TestFlag = TestFlag;
		this.TradSpec = TradSpec;
		this.RtnSign2 = RtnSign2;
		this.NullLine = NullLine;
	}
	
	public String toString(){
		return TxnType + TransType + TransID + TermID + TermSeq + PosID + SamID + 
				SamSeq + PosOprID + IssuerID + CardID + CardCsn + CardDebitCnt + CardModel + CardEndDate + CardType + BusinessIndex + ExtendType + Balance + TxnAmt + Chargetype + 
				OrigAmt + TxnDate + TxnTime + TAC + CardRand + ECCIssAppData + TxnAmtCode + OtherAmt + CoutryCode + TermChk + ECCTranTp + ECCAIP + CardVerNo + KeyVer + ComputTag + 
				KeyIndex + PanSeq + Rsvd + TestFlag + TradSpec + RtnSign2 + NullLine;
	}
	
	/*public String toString(){
		return "Version" + Version + "RtnSign" + RtnSign + "CorpID" + CorpID + "RecNum" + RecNum + "RecAmt" + RecAmt + "Reclens" + Reclens + 
				"IsTSUsed" + IsTSUsed + "Reserved" + Reserved + "RtnSign1" + RtnSign1 + "TxnType" + TxnType + "TransType" + TransType + "TransID" + TransID + "TermID" + TermID + 
				"TermSeq" + TermSeq + "PosID" + PosID + "SamID" + SamID + "SamSeq" + SamSeq + "PosOprID" + PosOprID + "IssuerID" + IssuerID + "CardID" + CardID + "CardCsn" + CardCsn + 
				"CardDebitCnt" + CardDebitCnt + "CardModel" + CardModel + "CardEndDate" + CardEndDate + "CardType" + CardType + "BusinessIndex" + BusinessIndex + "ExtendType" + ExtendType + 
				"Balance" + Balance + "TxnAmt" + TxnAmt + "Chargetype" + Chargetype + "OrigAmt" + OrigAmt + "TxnDate" + TxnDate + "TxnTime" + TxnTime + "TAC" + TAC + "CardRand" + CardRand + 
				"ECCIssAppData" + ECCIssAppData + "TxnAmtCode" + TxnAmtCode + "OtherAmt" + OtherAmt + "CoutryCode" + CoutryCode + "TermChk" + TermChk + "ECCTranTp" + ECCTranTp + "ECCAIP" + ECCAIP + 
				"CardVerNo" + CardVerNo + "KeyVer" + KeyVer + "ComputTag" + ComputTag + "KeyIndex" + KeyIndex + "PanSeq" + PanSeq + "Rsvd" + Rsvd + "TestFlag" + TestFlag + "TradSpec" + TradSpec + "RtnSign2" + RtnSign2;
	}*/
}
